﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MAccess.aspx.cs" Inherits="RAgency.Manager.MAccess" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:SqlDataSource ID="DDL" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>"
        SelectCommand="SELECT login FROM users">
        </asp:SqlDataSource>
<p>
Выберите пользователя: <asp:DropDownList ID="DDList" runat="server" DataSourceID="DDL" DataTextField="login" />
</p>
<p>
<asp:RadioButton ID="RButtonAction1" runat="server" Text="Предоставить одноразовый доступ" GroupName="RGroupAccess" Checked="true" />
</p>
<p>
<asp:RadioButton ID="RButtonAction2" runat="server" Text="Предоставить доступ на N дней: " GroupName="RGroupAccess" />
<asp:TextBox ID="DaysTBox" runat="server" />
<asp:RegularExpressionValidator ID="DaysValid" runat="server" ControlToValidate="DaysTBox"
                    Display="Dynamic" ErrorMessage="Только числа!"
                    ValidationExpression="[0-9]*" />
</p>
<p>
<asp:Button ID="ActionButton" runat="server" OnCommand="AccessOn" Text="Открыть доступ" />
<asp:Label ID="ActionResult" runat="server" Text="" />
</p>
</asp:Content>
